<?php
#=================================================================================================================
#=================================================================================================================
#	Define all possible options in drop-down menu
#=================================================================================================================
#=================================================================================================================

$form_for_table = array(
#----------------------------------------------------------------------
#						Tabel										  |
#----------------------------------------------------------------------
	
	array('field_type' 			=> 'text',
		  'field_display_name' 	=> 'Nume furnizor',
		  'post_name' 			 => 'nume_furnizor',
		  'field_size' 			=> 40,
		  'max_length' 			=> 100),
		  
	array('field_type' 			=> 'text',
		  'field_display_name' 	=> 'CUI/CF',
		  'post_name' 			 => 'CUI_CF',
		  'field_size' 			=> 40,	
		  'max_length' 			=> 10,
		  'regex'				 => '/^\d{1-10}$/',
		  'validation_function'   => 'validate_cif',
		  'errors' 				=> array(
		  								'empty_field_or_no_selection_error' => 'Introduceti CUI/CF<br />',
										'no_regex_pattern_found_error' => 'CUI/CF invalid<br />' )),
					
	array('field_type' 			=> 'text',
		  'field_display_name' 	=> 'Numar decizie autorizare',
		  'post_name' 			 => 'numar_decizie_autorizare',
		  'field_size' 			=> 40,
		  'max_length' 			=> 100),
		  
	array('field_type' 			=> 'text',
		  'field_display_name' 	=> 'Data decizie autorizare',
		  'post_name' 			 => 'data_decizie_autorizare',
		  'field_size' 			=> 40,
		  'max_length' 			=> 100),
	
	array('field_type' 			=> 'drop_down_list',
		  'field_display_name' 	=> 'Forma organizare',
		  'post_name' 			 => 'forma_organizare',
		  'field_size' 			=> 40,
		  'max_length' 			=> 100,
		  'current_value'		 => 'opt1',
		  'initial_values'  		=> array('opt1' => 'societate commercială (SRL, SA, SNC, SCS, SCA)',
										   'opt2' => 'companie națională',
										   'opt3' => 'societate națională',
										   'opt4' => 'regie autonomă',
										   'opt5' => 'cooperativă de credit',
										   'opt6' => 'casă centrală',
										   'opt7' => 'societate cooperativă',
										   'opt8' => 'cooperativă agricolă',
										   'opt9' => 'institut național de cercetare/ dezvoltare',
										   'opt10' => 'grup de interes economic (comerciant/ necomerciant)',
										   'opt11' => 'grup european de interes economic (comerciant/ necomerciant)',
										   'opt12' => 'societate europeană',
										   'opt13' => 'societate cooperativă europeană',
										   'opt14' => 'sucursală',
										   'opt15' => 'persoană fizică autorizată – PFA',
										   'opt16' => 'asociație ',
										   'opt17' => 'fundație'
										  
										   )
			),
		 
	array('field_type' 			=> 'drop_down_list',
		  'field_display_name' 	=> 'Forma proprietate',
		  'post_name' 			 => 'forma_proprietate',
		  'field_size' 			=> 40,
		  'max_length' 			=> 100,
		  'current_value'		 => 'opt1',
		  'initial_values'  		=> array('opt1' => 'Publica',
										   'opt2' => 'Privata',
										   'opt3' => 'Mixta'
										   )
			),
		  
	array('field_type' 			=> 'drop_down_list',
		  'field_display_name' 	=> 'Sistem de management al calitatii',
		  'post_name' 			 => 'smac',
		  'field_size' 			=> 40,
		  'max_length' 			=> 100,
		  'current_value'		 => 'opt1',
		  'initial_values'  		=> array('opt1' => 'Da',
										   'opt2' => 'Nu'
										   )
		  ),
		  
	array('field_type' 			=> 'drop_down_list',
		  'field_display_name' 	=> 'Regiune',
		  'post_name' 			 => 'regiune',
		  'field_size' 			=> 40,
		  'max_length' 			=> 100,
		  'current_value'		 => 'opt1',
		  'initial_values'  		=> array('opt1' => 'Nord',
										   'opt2' => 'Sud',
										   'opt3' => 'Est',
										   'opt4' => 'Vest')
		),
		  
	array('field_type' 			=> 'text',
		  'field_display_name' 	=> 'Judet',
		  'post_name' 			 => 'judet',
		  'field_size' 			=> 40,
		  'max_length' 			=> 100),
		  
	array('field_type' 			=> 'drop_down_list',
		  'field_display_name' 	=> 'Localizare',
		  'post_name' 			 => 'localizare',
		  'field_size' 			=> 40,
		  'max_length' 			=> 100,
		  'current_value'		 => 'lala',
		  'initial_values'  		=> array('opt1' => 'Urban',
										   'opt2' => 'Rural')
			),
		  
	array('field_type' 			=> 'text',
		  'field_display_name' 	=> 'Localitate',
		  'post_name' 			 => 'localitate',
		  'field_size' 			=> 40,
		  'max_length' 			=> 100),
		  
	array('field_type' 			=> 'text',
		  'field_display_name' 	=> 'Strada',
		  'post_name' 			 => 'strada',
		  'field_size' 			=> 40,
		  'max_length' 			=> 100),
		  
	array('field_type' 			=> 'text',
		  'field_display_name' 	=> 'Numar strada',
		  'post_name' 			 => 'nr_strada',
		  'field_size' 			=> 40,
		  'max_length' 			=> 100),
		  
	array('field_type' 			=> 'text',
		  'field_display_name' 	=> 'Bloc',
		  'post_name' 			 => 'bloc',
		  'field_size' 			=> 40,
		  'max_length' 			=> 100), 
		 
	array('field_type' 			=> 'text',
		  'field_display_name' 	=> 'Scara',
		  'post_name' 			 => 'scara',
		  'field_size' 			=> 40,
		  'max_length' 			=> 100),
		
	array('field_type' 			=> 'text',
		  'field_display_name' 	=> 'Etaj',
		  'post_name' 			 => 'etaj',
		  'field_size' 			=> 40,
		  'max_length' 			=> 100),
		  
	array('field_type' 			=> 'text',
		  'field_display_name' 	=> 'Apartament',
		  'post_name' 			 => 'apartament',
		  'field_size' 			=> 40,
		  'max_length' 			=> 100),
		  
	array('field_type' 			=> 'text',
		  'field_display_name' 	=> 'Telefon',
		  'post_name' 			 => 'telefon',
		  'field_size' 			=> 40,
		  'max_length' 			=> 100),
		  
	array('field_type' 			=> 'text',
		  'field_display_name' 	=> 'Fax',
		  'post_name' 			 => 'fax',
		  'field_size' 			=> 40,
		  'max_length' 			=> 100),
		 
	array('field_type' 			=> 'text',
		  'field_display_name' 	=> 'Email',
		  'post_name' 			 => 'email',
		  'field_size' 			=> 40,
		  'max_length' 			=> 100),
		
	array('field_type' 			=> 'text',
		  'field_display_name' 	=> 'Site',
		  'post_name' 			 => 'site',
		  'field_size' 			=> 40,
		  'max_length' 			=> 100)
);	

#=================================================================================================================
#	End of drop-down elemnts
#=================================================================================================================

?>